package com.bitdf.txing.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bitdf.txing.common.to.mq.SeckillOrderTo;
import com.bitdf.txing.order.entity.OrderEntity;
import com.bitdf.txing.order.vo.OrderConfirmVo;
import com.bitdf.txing.order.vo.OrderSubmitVo;
import com.bitdf.txing.order.vo.SubmitOrderResponseVo;

import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author lizhiwei
 * @email sunlightcs@gmail.com
 * @date 2022-05-16 23:47:48
 */
public interface OrderService extends IService<OrderEntity> {

//    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    boolean createSeckillOrder(SeckillOrderTo orderTo);
}

